package com.mall.shopping.dto;

import com.mall.commons.result.AbstractRequest;
import lombok.Data;

@Data
public class QueryItemByIdRequest extends AbstractRequest {

    private Integer productId;


    // 这个方法是用来  参数校验
    @Override
    public void requestCheck() {
        if (productId == null) {
            throw new RuntimeException("参数校验失败");
        }
    }
}
